package de.fhb.itunes.repository.data;

import java.io.Serializable;
import java.sql.Date;



public class Musik_VO extends MedienFile_VO implements Serializable{

	private int titelnummer;
	private String album, albuminterpret, Interpret;
	
	
	public Musik_VO() {
		super();
	}
	public Musik_VO(int id, int trackid, int titelnummer, String titel,
			String album,String albuminterpret, String genre, String pfad, long laenge, Date added) {
		super(id, trackid, titel, genre, pfad, laenge, added);
		
		this.titelnummer = titelnummer;
		this.album = album;
		this.albuminterpret = albuminterpret;
	}
	
	
	public String getInterpret() {
		return Interpret;
	}
	public void setInterpret(String interpret) {
		Interpret = interpret;
	}
	public int getTitelnummer() {
		return titelnummer;
	}
	public void setTitelnummer(int titelnummer) {
		this.titelnummer = titelnummer;
	}
	public String getAlbum() {
		return album;
	}
	public void setAlbum(String album) {
		this.album = album;
	}
	public String getAlbuminterpret() {
		return albuminterpret;
	}
	public void setAlbuminterpret(String albuminterpret) {
		this.albuminterpret = albuminterpret;
	}
	public boolean equals(Object obj){
		boolean erg = false;
		if(obj != null){
			if(obj instanceof Musik_VO){
				Musik_VO musik = (Musik_VO) obj;
				if(this.album.equals(musik.album)&& this.albuminterpret.equals(musik.albuminterpret) && this.titelnummer == musik.titelnummer){
					if( super.equals(obj)){
						erg = true;
					}
				}
			}
		}
		return erg;
	}
	

}
